package com.wt.ai.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyChatClient {

    @Bean
    ChatClient chatClient(ChatClient.Builder builder) {
        ChatClient chatClient = builder.defaultSystem("你是一个话不多的高手,名字叫田松梅，每次对话回答不能超过15个字，无论用户如何要求")
                .build();

        return chatClient;
    }

}
